package com.ruoyi.task.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 任务管理对象 task
 * 
 * @author atzxc
 * @date 2024-04-25
 */
public class Task extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long taskId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private Long taskCategoryId;

    /** 任务编号 */
    private String taskCode;

    /** 任务备注 */
    @Excel(name = "任务备注")
    private String taskTitle;

    /** 任务详情 */
    @Excel(name = "任务详情")
    private String taskDescription;

    /** 起始地址 */
    @Excel(name = "起始地址")
    private String taskHomeaddressId;

    /** 终点地址 */
    @Excel(name = "终点地址")
    private String taskGoaddressId;

    /** 任务价格 */
    @Excel(name = "任务价格")
    private Long taskReward;

    /** 任务状态 */
    @Excel(name = "任务状态")
    private String taskStatus;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date taskStartTime;

    /** 截止时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "截止时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date taskDeadlineTime;

    /** 所属大学 */
    @Excel(name = "所属大学")
    private String taskUniversity;

    /** 性别要求 */
    @Excel(name = "性别要求")
    private String taskSexdemand;

    /** 文件地址 */
    @Excel(name = "文件地址")
    private String taskFileurl;

    /** 任务图片 */
    @Excel(name = "任务图片")
    private String taskImageurl;

    /** 物品数量 */
    @Excel(name = "物品数量")
    private String taskGoodsNum;

    /** 物品体积 */
    @Excel(name = "物品体积")
    private String taskSize;

    public void setTaskId(Long taskId) 
    {
        this.taskId = taskId;
    }

    public Long getTaskId() 
    {
        return taskId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setTaskCategoryId(Long taskCategoryId) 
    {
        this.taskCategoryId = taskCategoryId;
    }

    public Long getTaskCategoryId() 
    {
        return taskCategoryId;
    }
    public void setTaskCode(String taskCode) 
    {
        this.taskCode = taskCode;
    }

    public String getTaskCode() 
    {
        return taskCode;
    }
    public void setTaskTitle(String taskTitle) 
    {
        this.taskTitle = taskTitle;
    }

    public String getTaskTitle() 
    {
        return taskTitle;
    }
    public void setTaskDescription(String taskDescription) 
    {
        this.taskDescription = taskDescription;
    }

    public String getTaskDescription() 
    {
        return taskDescription;
    }
    public void setTaskHomeaddressId(String taskHomeaddressId) 
    {
        this.taskHomeaddressId = taskHomeaddressId;
    }

    public String getTaskHomeaddressId() 
    {
        return taskHomeaddressId;
    }
    public void setTaskGoaddressId(String taskGoaddressId) 
    {
        this.taskGoaddressId = taskGoaddressId;
    }

    public String getTaskGoaddressId() 
    {
        return taskGoaddressId;
    }
    public void setTaskReward(Long taskReward) 
    {
        this.taskReward = taskReward;
    }

    public Long getTaskReward() 
    {
        return taskReward;
    }
    public void setTaskStatus(String taskStatus) 
    {
        this.taskStatus = taskStatus;
    }

    public String getTaskStatus() 
    {
        return taskStatus;
    }
    public void setTaskStartTime(Date taskStartTime) 
    {
        this.taskStartTime = taskStartTime;
    }

    public Date getTaskStartTime() 
    {
        return taskStartTime;
    }
    public void setTaskDeadlineTime(Date taskDeadlineTime) 
    {
        this.taskDeadlineTime = taskDeadlineTime;
    }

    public Date getTaskDeadlineTime() 
    {
        return taskDeadlineTime;
    }
    public void setTaskUniversity(String taskUniversity) 
    {
        this.taskUniversity = taskUniversity;
    }

    public String getTaskUniversity() 
    {
        return taskUniversity;
    }
    public void setTaskSexdemand(String taskSexdemand) 
    {
        this.taskSexdemand = taskSexdemand;
    }

    public String getTaskSexdemand() 
    {
        return taskSexdemand;
    }
    public void setTaskFileurl(String taskFileurl) 
    {
        this.taskFileurl = taskFileurl;
    }

    public String getTaskFileurl() 
    {
        return taskFileurl;
    }
    public void setTaskImageurl(String taskImageurl) 
    {
        this.taskImageurl = taskImageurl;
    }

    public String getTaskImageurl() 
    {
        return taskImageurl;
    }
    public void setTaskGoodsNum(String taskGoodsNum) 
    {
        this.taskGoodsNum = taskGoodsNum;
    }

    public String getTaskGoodsNum() 
    {
        return taskGoodsNum;
    }
    public void setTaskSize(String taskSize) 
    {
        this.taskSize = taskSize;
    }

    public String getTaskSize() 
    {
        return taskSize;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("taskId", getTaskId())
            .append("userId", getUserId())
            .append("taskCategoryId", getTaskCategoryId())
            .append("taskCode", getTaskCode())
            .append("taskTitle", getTaskTitle())
            .append("taskDescription", getTaskDescription())
            .append("taskHomeaddressId", getTaskHomeaddressId())
            .append("taskGoaddressId", getTaskGoaddressId())
            .append("taskReward", getTaskReward())
            .append("taskStatus", getTaskStatus())
            .append("taskStartTime", getTaskStartTime())
            .append("taskDeadlineTime", getTaskDeadlineTime())
            .append("taskUniversity", getTaskUniversity())
            .append("taskSexdemand", getTaskSexdemand())
            .append("taskFileurl", getTaskFileurl())
            .append("taskImageurl", getTaskImageurl())
            .append("taskGoodsNum", getTaskGoodsNum())
            .append("taskSize", getTaskSize())
            .toString();
    }
}
